python program display powers of 2